package com.tian.service;

import com.tian.po.UserPO;
import com.tian.po.UserQueryPO;

import java.util.List;

public interface UserService {
    List<UserPO> findByName(String name);

    UserPO findByNameAndAge(String name, int age);

    List<UserPO> getUserByName(String name);

    List<UserPO> getAll(UserQueryPO query);

    UserPO findById(long id);

    void add(UserPO user);

    void deleteById(long id);
}
